function navigateTo({path, success}) {
  uni.navigateTo({
    url: path,
	animationType: "none",
    success: success,
    fail: ({errMsg}) => {
      /*if (errMsg == 'navigateTo:fail can not navigateTo a tabbar page') {
        uni.switchTab({url: url})
      }*/
      uni.switchTab({url: path})
    }
  });
}

export default navigateTo

